<template>
	<view class="special-content">
		<view class="special-list">
			<view class="special-item" v-for="(item,index) in exerciseList" :key="item.id" @click="gotoPractice">
				<view class="spec-title">{{item.name}}</view>
				<view class="spec-num">
					<view>{{item.num}}题</view>
					<u-icon name="arrow-right" color="#666666" size="28"></u-icon>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				exerciseList:[{
					id:1,
					name:'五月新规',
					num:'100'
				},
				{
					id:2,
					name:'五月新规',
					num:'100'
				},
				{
					id:3,
					name:'五月新规',
					num:'100'
				},
				{
					id:4,
					name:'五月新规',
					num:'100'
				},
				{
					id:5,
					name:'五月新规',
					num:'100'
				},
				{
					id:6,
					name:'五月新规',
					num:'100'
				}]
			}
		},
		methods:{
			// 跳转到练习
			gotoPractice(){
				uni.navigateTo({
					url:'/pagesA/topicPractice/index'
				})
			}
		}
	}
</script>

<style lang="scss">
	.special-list{
		// padding: 20rpx;
		width: 95%;
		margin: 20rpx auto;
		background-color: #fff;
		
		.special-item{
			display: flex;
			justify-content: space-between;
			padding: 35rpx 0;
			width: 95%;
			margin: 0 auto;
			font-size: 28rpx;
			border-bottom: 1rpx solid #DFE0E6;
			
			.spec-title{
				color: #313233;
			}
			
			.spec-num{
				display: flex;
				align-items: center;
				color: #999999;
			}
		}
	}
</style>